
package tpcar.ejb;
import javax.ejb.Remote;
import java.util.List;
//import java.io.PrintWriter;

/**
 * Defines an interface for beans used to consult the card.
 */
@Remote
public interface Consultator {
    
    /**
     * @return list of card.
     */   
    public List<CarteDeVisite> listerTous() ;
	
		
    /**
    * @return find a card with a given name.
    */  
		public List<CarteDeVisite> rechercherNom (String nom) ;
    
  	
    /**
    * @return list all the cards with a given prefix.
    */  
		public List<CarteDeVisite> rechercherPrefix (String prefix) ;

}
